//
//  WmcUserdefault+State.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/7/29.
//

import UIKit

fileprivate let prefix = "wmc.State"

// MARK: - 状态记录

extension WmcUserdefault.Key.State {
    /// 引导页状态
    struct Guide {
        /// 是否展示引导页
        static let isShowGuide: WmcUserdefault.Key = .init("\(prefix).\(Self.self).isShowGuide")
    }

    // MARK: 相机状态

    /// 相机状态
    struct Camera {
        /// 页面画幅状态
        static let aspectRatio: WmcUserdefault.Key = .init("\(prefix).\(Self.self).aspectRatio")

        /// 视频清晰度状态
        static let videoArticulation: WmcUserdefault.Key = .init("\(prefix).\(Self.self).videoArticulation")

        /// 闪光灯状态
        static let flashMode: WmcUserdefault.Key = .init("\(prefix).\(Self.self).flashMode")
        
        /// 照片分辨率级别
        static let resolution: WmcUserdefault.Key = .init(rawValue: "\(prefix).\(Self.self).resolution")
        
        /// 滤镜名称
        static let filter: WmcUserdefault.Key = .init(rawValue: "\(prefix).\(Self.self).filter")
    }
    
    /// 拼图
    struct CombinePhoto {
        /// 拼图设置
        static let setting: WmcUserdefault.Key = .init(rawValue: "\(prefix).\(Self.self).setting")
        /// 排版对应的照片数
        static let layoutPhotoNum: WmcUserdefault.Key = .init(rawValue: "\(prefix).\(Self.self).layoutPhotoNum")
    }
    

    // MARK: 云相册

    /// 云相册
    struct CloudAlbum {
        /// 云相册banner
        static let isShowBanner: WmcUserdefault.Key = .init("\(prefix).\(Self.self).isShowBanner", bindUser: true)
    }
}
